package net.findkrypton.event;

import javafx.scene.input.MouseButton;
import net.jumpengine.Manager;
import net.jumpengine.inter.IControl;
import net.jumpengine.inter.IMouseEvent;

/**
  * 通用鼠标处理类
 * <br /><br />
 * <b>作者:&nbsp;</b>张天文 <br />
 * <b>日期:&nbsp;</b>2020年3月7日 下午7:38:22<br />
 * @date
 */
public class MouseEvent implements IMouseEvent {
	private IControl focus;

	@Override
	public void click(int x, int y, MouseButton button) {
		Manager.getLog().info("MouseEvent[click]", x," ",y," ",button);
	}

	@Override
	public void mousePressed(int x, int y, MouseButton button) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseReleased(int x, int y, MouseButton button) {
		// TODO Auto-generated method stub
	}

	@Override
	public void mouseMove(int x, int y, MouseButton button) {
		// TODO Auto-generated method stub
	}

	@Override
	public void setFocus(IControl control) {
		focus=control;
	}

	@Override
	public IControl getFocus() {
		return focus;
	}
}
